// 部门信息数据类型
export interface departmentInfoData {
  _id?: string
  name: string
  description?: string
  parent_id?: string
  level?: number
  sort_order?: number
  permissions?: string[]
  create_time?: number
  update_time?: number
  parent?: departmentInfoData
  children?: departmentInfoData[]
}

// 部门列表数据类型
export interface departmentListData {
  data: departmentInfoData[]
  total: number
}

// 获取部门列表响应数据类型
export interface getDepartmentListResponseData {
  status: number
  data?: departmentListData
  msg?: string
}

// 部门权限数据类型
export interface departmentPermissionData {
  department_id: string
  permissions: string[]
} 
